package com.jack.online.study.controller.trade.api;

import com.jack.online.study.common.base.result.R;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/api/trade/weixin-pay")
//@Api(description = "网站微信支付")
@CrossOrigin //跨域
@Slf4j
public class WeixinPayController {
//    @Autowired
//    private WeixinPayService weixinPayService;

    @GetMapping("create-native/{orderNo}")
    public R createNative(@PathVariable String orderNo, HttpServletRequest request) {
        String remoteAddr = request.getRemoteAddr();
//        Map map = weixinPayService.createNative(orderNo, remoteAddr);
//        return R.ok().data(map);
        return null;
    }

}
